<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>咸鱼启动页</title>
		<link rel="stylesheet" type="text/css" href="../../css/common/reset.css"/>
		<link rel="stylesheet" type="text/css" href="../../css/begin/begin.css"/>

	</head>
	<body>
		<div class="web">
			<div class="begin-logo">
				<a><img src="../../img/begin/begin-logo.png" /></a>
			</div>
			<div class="begin-btn">
				<button><a href="login.html">登录</a></button>
				<button><a href="register.html">免费注册</a></button>
			</div>
		</div>
		<script>
			document.body.style.height=window.innerHeight+"px";
			
			/*动态改变根元素字体大小*/
			function recalc() {
				var clientWidth = document.documentElement.clientWidth;
				if(!clientWidth) return;
				document.documentElement.style.fontSize = 40 * (clientWidth / 750) + 'px';
//												字体大小  =一个rem单位表示多少个相素*（ 移动设备的宽度  / 设计图宽度）
			}

			function initRecalc() {
				recalc();
				var resizeEvt = 'osrientationchange' in window ? 'orientationchange' : 'resize';
				if(!document.addEventListener) return;
				window.addEventListener(resizeEvt, recalc, false);
				document.addEventListener('DOMContentLoaded', recalc, false);
			}
			initRecalc();
		</script>
	</body>
</html>
